home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr46
/
be310.zip
/
CINDENT2.CHS
< prev
next >
Wrap
Text File
|
1993-06-01
|
946b
|
25 lines
/* CHESS FUNCTION(S): CINDENT2.CHS
/* DATE: 5/15/93
/* AUTHOR: C. Schanck
/*
/* DESCRIPTION: This program file will convert from C mode
/* indention #1 to C mode indention #2. It is very useful when
/* used in conjunction with 'global' to change a whole set of files
/* to a uniform indention style.
{
/* you need to have Cmode #2 turned on
int i;
set_display(0); /* turn the display off
while(Search("~[/~{][{][ ]*$~ ~fr~ ")) /* while you find a left bracket
{
End_line(); /* go to the end
Carriage(); /* hit return
Del_line(); /* delete the blank line
Begin_line(); /* go to the beginning
i=i+1;
if((i%25)==0) /* keep the user apprised of the situation
msg("%ld instances changed...",i);
}
update_display(); /* clean up the display
set_display(1);
}